<template>

  <el-affix :offset="120" >
    <div class="leadermsg" @click="pageToLeader">
      <img src="@/assets/img/leaderMsg.png">
      <span>市长信箱</span>
    </div>
  </el-affix>
  
</template>

<script setup>
import router from '@/router';
import { useTokenStore } from "@/stores/token";
import { ElMessage } from "element-plus";

const Login = ref(false);

//判断是否登陆
const tokenStore = useTokenStore();
if(tokenStore.token){
  Login.value = true;
}

//页面跳转
const pageToLeader = ()=>{
    router.push('./leaderMsg')
}

</script>

<style>
.leadermsg{
    width: 5%;
    display: flex;
    align-content: center;
    flex-direction: column;
    height: auto;
    color: black;
    font-weight: 600;
    font-size: 15px;
    margin-left: 92%;
}
</style>